home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libruby1.8.prerm < prev    next >
Text File  |  2008-09-19  |  1KB  |  39 lines

  1. #! /bin/sh
  2. # postrm script for ruby
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/share/doc/packaging-manual/
  18.  
  19. case "$1" in
  20.     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  21.         if [ -w /usr/local/lib -a -e /usr/local/lib/site_ruby/1.8 ]
  22.            then
  23.             rmdir /usr/local/lib/site_ruby/1.8/i486-linux 2>/dev/null || true
  24.             rmdir /usr/local/lib/site_ruby/1.8          2>/dev/null || true
  25.             rmdir /usr/local/lib/site_ruby              2>/dev/null || true
  26.            fi
  27.     ;;
  28.  
  29.     *)
  30.         echo "postrm called with unknown argument \`$1'" >&2
  31.         exit 0
  32.  
  33. esac
  34.  
  35. # dh_installdeb will replace this with shell code automatically
  36. # generated by other debhelper scripts.
  37.  
  38.  
  39.